/*
 * @(#)EmailMessage.java
 *
 * Copyright (c) 2004 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */

package com.dcivision.mail.bean;

import java.util.Date;
import java.util.List;

/**
 * EmailMessage.java
 * 
 * This class represent a email message interface.
 * 
 * @author Beyond Qu
 * @company DCIVision Limited
 * @creation 09/06/2005
 * @version $Revision: 1.16 $
 */
public interface EmailMessage {

  public static final String EMAIL_CONTENT_TYPE_HTML = "html";
  public static final String EMAIL_CONTENT_TYPE_TXT = "txt";

  public Integer getID();

  public String getSubject() ;

  public void setSubject(String subject);

  public String getOriSubject() ;

  public void setOriSubject(String subject);


  public String getSender();

  public void setSender(String sender);

  public Date getSendDate();

  public void setSendDate(Date sendDate);

  public String getCc();

  public void setCc(String cc);

  public String getTo();

  public void setTo(String to);

  public int getSize();

  public void setSize(int size);

  public Object getContent();

  public void setContent(Object content);

  public String getOriContent();

  public void setOriContent(String oriContent);

  public int getPriority();

  public void setPriority(int priority);

  public boolean isTextOnly();

  public void setIsTextOnly(boolean isTextOnly);

  public List getAttachments();

  public void addAttachment(EmailAttachment emailAttachement);

  public EmailAttachment getAttachment(int id);

  public boolean getIsSaved();

  public void setIsSaved(boolean isSaved);

//  public String getSortValue(String SortName);

  public String getMessageID();

  public void setMessageID(String messageID);

  public boolean getAnalyzed();

  public void setAnalyzed(boolean analyzed);

  public void setEmailContentType(String emailContentType);

  public String getEmailContentType();

}